Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

454
Views
docker container exited with "Local package.json exists, but node_modules missing, did you mean to install?" message

I'm trying to setup docker containers for fullstack app: express, react. But something goes wrong and api container doesn't work. Can you help me please https://github.com/flyoozes/react-full-stack

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

when you specify volumes in docker-compose.yml file it mounts folder when running container. And in your case docker overrides /srv/app/api folder and as result node_modules missing. You can comment out volumes for api services and the container will work.

However is better to add /srv/app/api/node_modules as 2nd volume to api service. This will mount the node_modules directory to the host machine using the buildtime directory.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!